let promise = new Promise(function executor(resolve,reject){
    //resolve('value');
    reject('reason');
});
promise.then(
   function onFulfilled(value){
    console.log('1',value);
   },
   function onRejected(reason){
    console.log('1',reason);
   }
);
promise.then(
    function onFulfilled(value){
     console.log('2',value);
    },
    function onRejected(reason){
     console.log('2',reason);
    }
 );
